﻿<Window x:Class="httpExplorer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:Xaml="clr-namespace:httpExplorer.Xaml" xmlns:Properties="clr-namespace:httpExplorer.Properties"
        mc:Ignorable="d"
        Title="Http Explorer"
        Closed="Window_Closed"
        Width="{Binding Source={StaticResource Settings}, Path=Default.MainWindowWidth, Mode=TwoWay}"
        Height="{Binding Source={StaticResource Settings}, Path=Default.MainWindowHeight, Mode=TwoWay}"
        >
    
    <Window.Resources>
        
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Skins/MainSkin.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

   <Grid>
            <Grid.Background>
                <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
                    <GradientStop Color="LightGray" Offset="0.0" />
                    <GradientStop Color="DarkGray" Offset="1.0" />
                </LinearGradientBrush>
            </Grid.Background>

       <Grid
            x:Name="LayoutRoot"
           Visibility="Collapsed" >
            <Grid.RowDefinitions>
                <RowDefinition Height="60" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Xaml:InputGrid 
                Grid.Row="0"
                Margin="8"/>

            <Xaml:OutputGrid  
                Grid.Row="1"
                Margin="8" />
            <Button 
                    Content="Settings" 
                    Click="SettingsButtonClicked" 
                    Grid.Row="2"
                    Width="100" 
                    HorizontalAlignment="Left"
                    Height="30"
                    Margin="8,12"/>
       </Grid>
    
       <Grid
            x:Name="SettingsLayoutRoot"     
            Visibility="Visible"
        >
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Label Content="Settings" Margin="8,0" Grid.Row="0" FontSize="14pt"  FontWeight="Bold"/>
        <Xaml:SettingsMainGrid Grid.Row="1" Margin="8"/>
        <Button 
            Content="Tool" 
            Click="ToolButtonClicked" 
            Grid.Row="2"  
            Width="100" 
            HorizontalAlignment="Left"
            Height="30"
            Margin="8,12"/>
    </Grid>
</Grid>
</Window>
